$OpenBSD: patch-g2c_hin,v 1.2 2010/05/26 08:18:07 espie Exp $
--- g2c.hin.orig	Sat May 22 20:07:20 2010
+++ g2c.hin	Wed May 26 10:06:49 2010
@@ -16,6 +16,19 @@
 #ifndef F2C_INCLUDE
 #define F2C_INCLUDE
 
+#if __GNUC__ >= 4
+#ifdef __LP64__
+typedef int __g77_integer;
+typedef unsigned int __g77_uinteger;
+typedef long __g77_longint;
+typedef unsigned long __g77_ulongint;
+#else
+typedef long __g77_integer;
+typedef unsigned long __g77_uinteger;
+typedef long long __g77_longint;
+typedef unsigned long long __g77_ulongint;
+#endif
+#endif
 /* F2C_INTEGER will normally be `int' but would be `long' on 16-bit systems */
 /* we assume short, float are OK */
 typedef __g77_integer integer;
